/** 
 * Project Name:tinysql 
 * File Name:SqlFeature.java 
 * Package Name:com.wdy.golden.tinysql.enmus 
 * Date:2021年1月27日上午10:01:49 
 * 
*/  
package com.wdy.golden.tinysql.enmus;


/** 
 * ClassName:SqlFeature <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2021年1月27日 上午10:01:49 <br/> 
 * @author   DongYe_Wu 
 * @version
 * @see       
 */
public enum SqlFeature {

	ASC("asc", 1),DESC("desc",2),
	;

	public String name;
	public int index;

	private SqlFeature(String name, int index) {
		this.name = name;
		this.index = index;
	}

	public static String getName(int index) {
		for (SqlSeparateType c : SqlSeparateType.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}
	
	public String getName() {
		return name;
	}

	public int getIndex() {
		return index;
	}
}
